import tcdIO.Terminal;

	class PrimeNumberProgram {

	public static void main(String[] args) {
		Terminal terminal1;
		Number number1;
		
		terminal1 = new Terminal("Prime Number test");
		
		number1 = new Number(terminal1.readInt("Enter number: "));
		terminal1.println("");
		
		
		//Test number 1
		if (Number.checkPrime(number1.getNumber()) == true){
			terminal1.println(number1.getNumber() + " is a prime number");

		}
		else{
			terminal1.println(number1.getNumber() + " is not a prime number");
		}
			
			//Return factors
			terminal1.println("The factors of " + number1.getNumber() + " are:" + Number.getFactors(number1.getNumber()));

	}

}
